<?php 
include_once("model/Model.php");
include_once("model/MenuItemEnum.php");
include_once("model/AdminItemEnum.php");
$model = Model::getInstance();
$displayList = ($model->isAdmin && $model->adminMode)?$model->listAdminItem:$model->listItems;
?>
<div class="arrowgreen">
	<ul>
		<?php 
			foreach($displayList as $key=>$val){
				$selected = (($model->selected == $key))?" class=\"selected\"":"";
				$stepUrl = ($key == AdminItemEnum::RESULT_IMPORT)?"&step=1":"";
				printf("<li><a href=\"?%s%s\" title=\"%s\"%s>%s</a></li>",$key,$stepUrl,$val,$selected,$val);
			}
		?>
	</ul>
</div>
